{if $smarty.const.PATH}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="distribution" content="Global" />
		<meta name="author" content="Vean" />
		<meta name="robots" content="index,follow" />
		<meta name="description" content="Site Description." />
		<meta name="keywords" content="ots, open tibia server, ..." />
		<title>{$config['website']['title']}</title>
		<link href="{$template}/main.css" rel="stylesheet" type="text/css" media="screen" />
		
		<script type="text/javascript">
			var RecaptchaOptions =
			{
				theme : '{$config['recaptcha']['theme']}'
			};
		</script>
		{$scripts}
	</head>
	<body>
		<div id="vt_page">
			<div id="vt_header"></div>
			<div id="vt_container">
				<div id="vt_menu">
					<div id="vt_news_menu">
						<div class="header">Main</div>
						<ul>
							<li><a href="{$path}/home/">Home</a></li>
							<li><a href="{$path}/news/">Latest News</a></li>
							<!-- <li><a href="{$path}/bugtracker">Bug Tracker</a></li> -->
						</ul>
					</div>
					<div id="vt_account_menu">
						<div class="header">Account</div>
						<ul>
							{if $logged}
							<li><a href="{$path}/account/">Manage Account</a></li>
							<li><a href="{$path}/account/logout/">Logout</a></li>
							{else}
							<li><a href="{$path}/account/register/">Create Account</a></li>
							<li><a href="{$path}/account/">Login</a></li>
							{/if}
						</ul>
					</div>
					<div id="vt_community_menu">
						<div class="header">Community</div>
						<ul>
							<li><a href="{$path}/search/">Characters</a></li>
							<li><a href="{$path}/highscores/">Highscores</a></li>
							<li><a href="{$path}/houses/">Houses</a></li>
							<li><a href="{$path}/online/">Online List</a></li>
							<li><a href="{$path}/deaths/">Latest Deaths</a></li>
						</ul>
					</div>
				</div>
				<div id="vt_content">
					<div class="message">
						<div class="title">{$config['website']['controller_title']}</div>
					</div>
					<br />
					{$main}
				</div>
				<div id="vt_panel">
					<div class="top">
						<div class="bot">
							<div id="vt_panel_buttons">
								<a href="{$path}/downloads/" class="button">
									Downloads
									<span>Official downloads page</span>
								</a>
								{if $config['website']['forumStatus']}
								<a href="{$config['website']['forum']}" class="button">
									Server Forum
									<span>Lead discussions about server life</span>
								</a>
								{/if}
								{if $config['website']['store']['status']}
								<a href="{$path}{$config['website']['store']['link']}" class="button">
									Store
									<span>Shopping is something you can't avoid</span>
								</a>
								{/if}
							</div>
							<div class="vt_panel_module">
					
					<p><b>Status:</b> <span style="float:right;color:red;">OFFLINE</span><br />
					
					<!-- PENDING -->
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="vt_footer">
				<div class="column first">
					<img src="{$template}/images/authornote.png" />
				</div>
				<div class="column second">
					<p>{$footer}<br />
					Copyright &copy; 2011 {$config['server']['name']}.<br />
					<small>Page rendered in: {$render}s</small></p>
					<small><a href="{$path}/credits/">Archez AAC credits.</a></small><br />
				</div>
			</div>
		</div>
	</body>
</html>
{/if}